package com.sduept.i1.model;

public class Apdu {
	public int frameType;
	public int msgType;
	public int frameNo; // 一个字节无符号，主动上传最高位为1，召唤上送最高位为0
	public int msgLen;
	public byte[] elements;

	public Apdu() {
		frameType = 0;
		msgType = 0;
		frameNo = 0;
		msgLen = 0;
		elements = null;
	}
	
	public Apdu(int frameType, int msgType,  int msgLen, byte[] elements) {
		this.frameType = frameType;
		this.msgType = msgType;
		this.frameNo = 1;
		this.msgLen = msgLen;
		this.elements = elements;
	}

	public String toString() {
		return "msgType=" + msgType + ";frameNo=" + frameNo + ";msgLen:" + msgLen + ";frameType=" + frameType;
	}
}
